package xiaodou.modules.microblog
{
	import mx.events.CloseEvent;
	
	import xiaodou.core.controls.STitleWindow;
	import xiaodou.data.SelectObject;
	
	public class InteractionWindow extends STitleWindow
	{		
		private var _goalUserArr:Array;
		private var _goalUserChanged:Boolean;
		
		public function InteractionWindow()
		{
			super();
		}
		
		override protected function commitProperties():void
		{
			super.commitProperties();
			if(_goalUserChanged)
			{
				_goalUserChanged = false;
				updateDisplay();
			}
		}
		
		protected function updateDisplay():void
		{
			
		}
		
		public function dispose():void
		{
			hide();
			if(goalUserArr != null)
			{
				for (var i:int = 0; i < goalUserArr.length; i++) 
				{
					(_goalUserArr[i] as SelectObject).selected = false;
				}
			}
		}
		
		/**
		 * 目标用户 
		 * */
		public function get goalUserArr():Array
		{
			return _goalUserArr;
		}
		
		/**
		 * @private
		 */
		public function set goalUserArr(value:Array):void
		{
			_goalUserArr = value;
			_goalUserChanged = true;
			invalidateProperties();
		}
	}
}